<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix = "c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script>
	function download(){
		var filename = $("#filename").val();
		if(!filename){
			alert("录入文件名称。");			
		}else{
			location.href="download?filename="+filename;
		}
		
	}
</script>
</head>
<body>
参数测试：hello:${reqval}--${sessionScope.se}--${requestScope.mkey}--mapkey:${requestScope.mapkey}
<br/>
文件下载：
<input id="filename" type="text" name="filename"/>
<a href="javascript:download();">下载</a>
<br/>
文件上传：
<form action="upload" method="post" enctype="multipart/form-data">
	username:<input type="text" name="username"/>
	图片:<input type="file" name="myfile"/>
	<input type="submit" value ="submit"/>
</form>
<br/>
参数测试：
<form action="login2" method="post">
	id:<input type="text" name="id"/>
	name:<input type="text" name="name"/>
	age:<input type="text" name="age"/>
	<input type="submit" value ="submit"/>
</form>
</body>
</html>